package com.example.alee.ALeeSpringWeb.service;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import java.util.StringJoiner;

@Service
public class MultiConfigService {

    @Value("${app.memo}")
    private String memoName;

    @Value("${spring.data.redis.host}")
    private String redisHostName;

    @Value("${spring.datasource.url}")
    private String jdbcUrl;

    public void print(){
        StringJoiner stringJoiner =new StringJoiner("  ,  ");
        stringJoiner.add(memoName).add(redisHostName).add(jdbcUrl);

        System.out.println("stringJoiner: "+stringJoiner);
    }
}
